<script setup>
import { onMounted, onBeforeUnmount } from 'vue'
import { RouterLink, RouterView } from 'vue-router'
import Layout from '@/components/layout/index.vue'
import Login from '@/views/login.vue'
import { useCommStore } from '@/stores'
onMounted(() => {
  const { setShopList, setCategoryList, getConfig } = useCommStore()
  getConfig()
  setShopList()
  setCategoryList()
})
</script>

<template>
  <Layout>
    <RouterView />
  </Layout>
  <Login />
</template>

<style scoped>
</style>
